#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <screenutil.h>
#include <simpledialog.h>
#include <simplewindow.h>

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setAttribute(Qt::WA_DontCreateNativeAncestors);
}
MainWindow::~MainWindow()
{

}

void MainWindow::on_pushButton_clicked()
{
    auto window = new SimpleDialog();
    window->show();
}


void MainWindow::on_pushButton_2_clicked()
{
    auto window = new SimpleWindow();
    window->show();

    ScreenUtil::moveCenterForCursor(*window);
}

